package de.fhb.itunes.manager.Datenverwaltung;


import de.fhb.itunes.repository.DataAccess.DAO_Playlist;
import de.fhb.itunes.repository.DataAccess.IDAO_Playlist;
import de.fhb.itunes.repository.data.Playlist_VO;
import de.fhb.itunes.repository.data.User_VO;

public class Playlistverwaltung {
	private IDAO_Playlist playlisten;
	public Playlistverwaltung(){
		super();
		playlisten = new DAO_Playlist();
	}
	
	public Playlist_VO getbyUser(User_VO user){
		if(user != null){
			return playlisten.getbyUserID(user.getID());
		}
		else{
			return null;
		}
	}
	
	public Playlist_VO getbyUserID(int userID){
		return playlisten.getbyUserID(userID);
	}

}
